package com.stylefeng.guns.common.enums;

public enum EnPfFile {

    //奖品状态
    WZ_PUBLIC_READ("wz-public-read",1),
    WZ_PUBLIC_READ_PRIZE("wz-public-read-prize",2),
    WZ_PUBLIC_READ_ADV("wz-public-read-adv",3);

    private String name ;
    private int index ;

    private EnPfFile(String name , int index ){
        this.name = name ;
        this.index = index ;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }

    public static String bucketName(Integer type){
        for(EnPfFile f:EnPfFile.values()){
            if(type == f.getIndex()){
                return f.getName();
            }
        }
        return null;
    }
}
